import request from '@/utils/request'

export function get_official(params) {
  return request({
    baseURL: process.env.VUE_APP_ADMIN_API,
    url: '/tenant/official/findAll',
    params
  })
}

export function save_official(data) {
  return request({
    baseURL: process.env.VUE_APP_ADMIN_API,
    url: '/tenant/official/save',
    method: 'post',
    data
  })
}

export function remove_official(data) {
  return request({
    baseURL: process.env.VUE_APP_ADMIN_API,
    method: 'delete',
    url: '/tenant/official/remove',
    data
  })
}

export function remove_official_all(data) {
  return request({
    baseURL: process.env.VUE_APP_ADMIN_API,
    method: 'delete',
    url: '/tenant/official/remove2',
    data
  })
}
